home *** CD-ROM | disk | FTP | other *** search
-
- /*
- * This file was generated by the SOM Compiler.
- * Generated using:
- * SOM incremental update: somc/smmain.c
- */
-
- /*
- File: SemtIntf.cpp
-
- Contains: Implementation of Mac specific ODCPlusSemanticInterface class.
-
- Owned by: Nick Pilch
-
- Copyright: © 1994 - 1995 by Apple Computer, Inc., all rights reserved.
- */
-
-
- #ifndef _EXCEPT_
- #include "Except.h"
- #endif
-
- #define VARIABLE_MACROS
- #define ODCPlusSemanticInterface_Class_Source
- #include <SemtIntf.xih>
-
- //------------------------------------------------------------------------------
- // ODCPlusSemanticInterface::somInit
- //------------------------------------------------------------------------------
-
- SOM_Scope void SOMLINK ODCPlusSemanticInterfacesomInit(ODCPlusSemanticInterface *somSelf)
- {
- // ODCPlusSemanticInterfaceData *somThis = ODCPlusSemanticInterfaceGetData(somSelf);
- ODCPlusSemanticInterfaceMethodDebug("ODCPlusSemanticInterface","ODCPlusSemanticInterfacesomInit");
-
- ODCPlusSemanticInterface_parents_somInit(somSelf);
-
- /* _fHelper = kODNULL; */ // som initializes fields to NULL.
- }
-
- //------------------------------------------------------------------------------
- // ODCPlusSemanticInterface::InitCPlusSemanticInterface
- //------------------------------------------------------------------------------
-
- SOM_Scope void SOMLINK ODCPlusSemanticInterfaceInitCPlusSemanticInterface(ODCPlusSemanticInterface *somSelf, Environment *ev,
- ODPart* base,
- SIHelperAbs* helper,
- ODSession* session)
- {
- ODCPlusSemanticInterfaceData *somThis = ODCPlusSemanticInterfaceGetData(somSelf);
- ODCPlusSemanticInterfaceMethodDebug("ODCPlusSemanticInterface","ODCPlusSemanticInterfaceInitCPlusSemanticInterface");
-
- somSelf->InitSemanticInterface(ev, base, session);
-
- _fHelper = helper;
- }
-
- //------------------------------------------------------------------------------
- // ODCPlusSemanticInterface::somUninit
- //------------------------------------------------------------------------------
-
- SOM_Scope void SOMLINK ODCPlusSemanticInterfacesomUninit(ODCPlusSemanticInterface *somSelf)
- {
- // ODCPlusSemanticInterfaceData *somThis = ODCPlusSemanticInterfaceGetData(somSelf);
- ODCPlusSemanticInterfaceMethodDebug("ODCPlusSemanticInterface","ODCPlusSemanticInterfacesomUninit");
-
- ODCPlusSemanticInterface_parents_somUninit(somSelf);
- }
-
- //------------------------------------------------------------------------------
- // ODCPlusSemanticInterface::GetSIHelper
- //------------------------------------------------------------------------------
-
- SOM_Scope SIHelperAbs* SOMLINK ODCPlusSemanticInterfaceGetSIHelper(ODCPlusSemanticInterface *somSelf, Environment *ev)
- {
- ODCPlusSemanticInterfaceData *somThis = ODCPlusSemanticInterfaceGetData(somSelf);
- ODCPlusSemanticInterfaceMethodDebug("ODCPlusSemanticInterface","ODCPlusSemanticInterfaceGetSIHelper");
-
- return _fHelper;
- }
-
- //------------------------------------------------------------------------------
- // ODCPlusSemanticInterface::CallEventHandler
- //------------------------------------------------------------------------------
-
- SOM_Scope void SOMLINK ODCPlusSemanticInterfaceCallEventHandler(ODCPlusSemanticInterface *somSelf, Environment *ev,
- ODPart* thePart,
- ODAppleEvent* theODAppleEvent,
- ODAppleEvent* reply)
- {
- ODCPlusSemanticInterfaceData *somThis = ODCPlusSemanticInterfaceGetData(somSelf);
- ODCPlusSemanticInterfaceMethodDebug("ODCPlusSemanticInterface","ODCPlusSemanticInterfaceCallEventHandler");
-
- OSErr error;
- SOM_TRY
- somSelf->CheckValid(ev);
- error = _fHelper->CallEventHandler((ODPart*)somSelf->GetBase(ev),
- theODAppleEvent, reply);
- THROW_IF_ERROR(error);
- SOM_CATCH_ALL
- SOM_ENDTRY
- }
-
- //------------------------------------------------------------------------------
- // ODCPlusSemanticInterface::CallCoercionHandler
- //------------------------------------------------------------------------------
-
- SOM_Scope void SOMLINK ODCPlusSemanticInterfaceCallCoercionHandler(ODCPlusSemanticInterface *somSelf, Environment *ev,
- ODPart* thePart,
- ODDesc* theODDesc,
- ODDescType toType,
- ODDesc* result)
- {
- ODCPlusSemanticInterfaceData *somThis = ODCPlusSemanticInterfaceGetData(somSelf);
- ODCPlusSemanticInterfaceMethodDebug("ODCPlusSemanticInterface","ODCPlusSemanticInterfaceCallCoercionHandler");
-
- OSErr error;
- SOM_TRY
- somSelf->CheckValid(ev);
- error = _fHelper->CallCoercionHandler((ODPart*)somSelf->GetBase(ev),
- theODDesc, toType, result);
- THROW_IF_ERROR(error);
- SOM_CATCH_ALL
- SOM_ENDTRY
- }
-
- //------------------------------------------------------------------------------
- // ODCPlusSemanticInterface::CallObjectAccessor
- //------------------------------------------------------------------------------
-
- SOM_Scope void SOMLINK ODCPlusSemanticInterfaceCallObjectAccessor(ODCPlusSemanticInterface *somSelf, Environment *ev,
- ODPart* thePart,
- ODDescType desiredClass,
- ODOSLToken* container,
- ODDescType containerClass,
- ODDescType form,
- ODDesc* selectionData,
- ODOSLToken* value)
- {
- ODCPlusSemanticInterfaceData *somThis = ODCPlusSemanticInterfaceGetData(somSelf);
- ODCPlusSemanticInterfaceMethodDebug("ODCPlusSemanticInterface","ODCPlusSemanticInterfaceCallObjectAccessor");
-
- OSErr error;
- SOM_TRY
- somSelf->CheckValid(ev);
- error = _fHelper->CallObjectAccessor((ODPart*)somSelf->GetBase(ev),
- desiredClass, container,
- containerClass, form,
- selectionData, value);
- THROW_IF_ERROR(error);
- SOM_CATCH_ALL
- SOM_ENDTRY
- }
-
- //------------------------------------------------------------------------------
- // ODCPlusSemanticInterface::CallPredispatchProc
- //------------------------------------------------------------------------------
-
- SOM_Scope void SOMLINK ODCPlusSemanticInterfaceCallPredispatchProc(ODCPlusSemanticInterface *somSelf, Environment *ev,
- ODPart* thePart,
- ODAppleEvent* theODAppleEvent,
- ODAppleEvent* reply)
- {
- ODCPlusSemanticInterfaceData *somThis = ODCPlusSemanticInterfaceGetData(somSelf);
- ODCPlusSemanticInterfaceMethodDebug("ODCPlusSemanticInterface","ODCPlusSemanticInterfaceCallPredispatchProc");
-
- OSErr error;
- SOM_TRY
- somSelf->CheckValid(ev);
- error = _fHelper->CallPredispatchProc((ODPart*)somSelf->GetBase(ev),
- theODAppleEvent, reply);
- THROW_IF_ERROR(error);
- SOM_CATCH_ALL
- SOM_ENDTRY
- }
-
- //------------------------------------------------------------------------------
- // ODCPlusSemanticInterface::CallCompareProc
- //------------------------------------------------------------------------------
-
- SOM_Scope void SOMLINK ODCPlusSemanticInterfaceCallCompareProc(ODCPlusSemanticInterface *somSelf, Environment *ev,
- ODPart* thePart,
- ODDescType oper,
- ODOSLToken* obj1,
- ODOSLToken* obj2,
- ODBoolean* result)
- {
- ODCPlusSemanticInterfaceData *somThis = ODCPlusSemanticInterfaceGetData(somSelf);
- ODCPlusSemanticInterfaceMethodDebug("ODCPlusSemanticInterface","ODCPlusSemanticInterfaceCallCompareProc");
-
- OSErr error;
- SOM_TRY
- somSelf->CheckValid(ev);
- error = _fHelper->CallCompareProc((ODPart*)somSelf->GetBase(ev), oper,
- obj1, obj2, result);
- THROW_IF_ERROR(error);
- SOM_CATCH_ALL
- SOM_ENDTRY
- }
-
- //------------------------------------------------------------------------------
- // ODCPlusSemanticInterface::CallCountProc
- //------------------------------------------------------------------------------
-
- SOM_Scope void SOMLINK ODCPlusSemanticInterfaceCallCountProc(ODCPlusSemanticInterface *somSelf, Environment *ev,
- ODPart* thePart,
- ODDescType desiredType,
- ODDescType containerClass,
- ODOSLToken* container,
- ODSLong* result)
- {
- ODCPlusSemanticInterfaceData *somThis = ODCPlusSemanticInterfaceGetData(somSelf);
- ODCPlusSemanticInterfaceMethodDebug("ODCPlusSemanticInterface","ODCPlusSemanticInterfaceCallCountProc");
-
- OSErr error;
- SOM_TRY
- somSelf->CheckValid(ev);
- error = _fHelper->CallCountProc((ODPart*)somSelf->GetBase(ev),
- desiredType, containerClass,
- container, result);
- THROW_IF_ERROR(error);
- SOM_CATCH_ALL
- SOM_ENDTRY
- }
-
- //------------------------------------------------------------------------------
- // ODCPlusSemanticInterface::CallDisposeTokenProc
- //------------------------------------------------------------------------------
-
- SOM_Scope void SOMLINK ODCPlusSemanticInterfaceCallDisposeTokenProc(ODCPlusSemanticInterface *somSelf, Environment *ev,
- ODPart* thePart,
- ODOSLToken* unneededToken)
- {
- ODCPlusSemanticInterfaceData *somThis = ODCPlusSemanticInterfaceGetData(somSelf);
- ODCPlusSemanticInterfaceMethodDebug("ODCPlusSemanticInterface","ODCPlusSemanticInterfaceCallDisposeTokenProc");
-
- OSErr error;
- SOM_TRY
- somSelf->CheckValid(ev);
- error = _fHelper->CallDisposeTokenProc((ODPart*)somSelf->GetBase(ev),
- unneededToken);
- THROW_IF_ERROR(error);
- SOM_CATCH_ALL
- SOM_ENDTRY
- }
-
- //------------------------------------------------------------------------------
- // ODCPlusSemanticInterface::CallGetErrDescProc
- //------------------------------------------------------------------------------
-
- SOM_Scope void SOMLINK ODCPlusSemanticInterfaceCallGetErrDescProc(ODCPlusSemanticInterface *somSelf, Environment *ev,
- ODPart* thePart,
- ODDesc** errDesc)
- {
- ODCPlusSemanticInterfaceData *somThis = ODCPlusSemanticInterfaceGetData(somSelf);
- ODCPlusSemanticInterfaceMethodDebug("ODCPlusSemanticInterface","ODCPlusSemanticInterfaceCallGetErrDescProc");
-
- OSErr error;
- SOM_TRY
- somSelf->CheckValid(ev);
- error = _fHelper->CallGetErrDescProc((ODPart*)somSelf->GetBase(ev),
- errDesc);
- THROW_IF_ERROR(error);
- SOM_CATCH_ALL
- SOM_ENDTRY
- }
-
- //------------------------------------------------------------------------------
- // ODCPlusSemanticInterface::CallGetMarkTokenProc
- //------------------------------------------------------------------------------
-
- SOM_Scope void SOMLINK ODCPlusSemanticInterfaceCallGetMarkTokenProc(ODCPlusSemanticInterface *somSelf, Environment *ev,
- ODPart* thePart,
- ODOSLToken* dContainerToken,
- ODDescType containerClass,
- ODOSLToken* result)
- {
- ODCPlusSemanticInterfaceData *somThis = ODCPlusSemanticInterfaceGetData(somSelf);
- ODCPlusSemanticInterfaceMethodDebug("ODCPlusSemanticInterface","ODCPlusSemanticInterfaceCallGetMarkTokenProc");
-
- OSErr error;
- SOM_TRY
- somSelf->CheckValid(ev);
- error = _fHelper->CallGetMarkTokenProc((ODPart*)somSelf->GetBase(ev),
- dContainerToken,
- containerClass, result);
- THROW_IF_ERROR(error);
- SOM_CATCH_ALL
- SOM_ENDTRY
- }
-
- //------------------------------------------------------------------------------
- // ODCPlusSemanticInterface::CallMarkProc
- //------------------------------------------------------------------------------
-
- SOM_Scope void SOMLINK ODCPlusSemanticInterfaceCallMarkProc(ODCPlusSemanticInterface *somSelf, Environment *ev,
- ODPart* thePart,
- ODOSLToken* dToken,
- ODOSLToken* markToken,
- ODSLong index)
- {
- ODCPlusSemanticInterfaceData *somThis = ODCPlusSemanticInterfaceGetData(somSelf);
- ODCPlusSemanticInterfaceMethodDebug("ODCPlusSemanticInterface","ODCPlusSemanticInterfaceCallMarkProc");
-
- OSErr error;
- SOM_TRY
- somSelf->CheckValid(ev);
- error = _fHelper->CallMarkProc((ODPart*)somSelf->GetBase(ev), dToken,
- markToken, index);
- THROW_IF_ERROR(error);
- SOM_CATCH_ALL
- SOM_ENDTRY
- }
-
- //------------------------------------------------------------------------------
- // ODCPlusSemanticInterface::CallAdjustMarksProc
- //------------------------------------------------------------------------------
-
- SOM_Scope void SOMLINK ODCPlusSemanticInterfaceCallAdjustMarksProc(ODCPlusSemanticInterface *somSelf, Environment *ev,
- ODPart* thePart,
- ODSLong newStart,
- ODSLong newStop,
- ODOSLToken* markToken)
- {
- ODCPlusSemanticInterfaceData *somThis = ODCPlusSemanticInterfaceGetData(somSelf);
- ODCPlusSemanticInterfaceMethodDebug("ODCPlusSemanticInterface","ODCPlusSemanticInterfaceCallAdjustMarksProc");
-
- OSErr error;
- SOM_TRY
- somSelf->CheckValid(ev);
- error = _fHelper->CallAdjustMarksProc((ODPart*)somSelf->GetBase(ev),
- newStart, newStop, markToken);
- THROW_IF_ERROR(error);
- SOM_CATCH_ALL
- SOM_ENDTRY
- }
-
-